package L3iob;

public class CheckNumber  {

    public void check(int number) throws MyException {
        if(number<=100||number>999){
            throw new MyException("学号位数输入有误！");
        }

    }
}
